package com.lyrcsoft.controller;

import com.lyrcsoft.service.ZhouyuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping
public class ZhouyuController {  // Bean Spring容器

	public ZhouyuController() {
		System.out.println("ZhouyuController");
	}

	@Autowired
	private ZhouyuService zhouyuService;


	@RequestMapping("/test")
	@ResponseBody
	public String test() {
		return zhouyuService.test();
	}

}
